package cn.wolfcode.wolf2w.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 游记评论
 */
@Document("travel_comment")
public class TravelComment extends BaseDomain {
    public static final int TRAVLE_COMMENT_TYPE = 0; //普通评论
    public static final int TRAVLE_COMMENT_TYPE_COMMENT = 1; //评论的评论

    private String travelId;  //游记id
    private String travelTitle; //游记标题
    private String userId;    //用户id
    private String nickname; //用户名
    private String city;
    private int level;
    private String headImgUrl;   // 用户头像
    private Date createTime; //创建时间
    private String content;  //评论内容

    private int type = TRAVLE_COMMENT_TYPE; //评论类别
    private TravelComment refComment;  //关联的评论

    public static int getTravleCommentType() {
        return TRAVLE_COMMENT_TYPE;
    }

    public static int getTravleCommentTypeComment() {
        return TRAVLE_COMMENT_TYPE_COMMENT;
    }

    public String getTravelId() {
        return travelId;
    }

    public void setTravelId(String travelId) {
        this.travelId=travelId;
    }

    public String getTravelTitle() {
        return travelTitle;
    }

    public void setTravelTitle(String travelTitle) {
        this.travelTitle=travelTitle;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId=userId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname=nickname;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city=city;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level=level;
    }

    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl=headImgUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime=createTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content=content;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type=type;
    }

    public TravelComment getRefComment() {
        return refComment;
    }

    public void setRefComment(TravelComment refComment) {
        this.refComment=refComment;
    }
}